package com.icangya.domain;

import javax.persistence.*;

@Entity
@Table(name = "alipay_cash_record")
public class AliPayCashRecord {//支付宝提现记录

    private long id;
    private String openId;//用户id
    private String aliPayAccount;//支付宝账号
    private double money;//提现金额
    private  int status;//提现状态   0提现成功   1审核中    2  审核失败
    private  String statusValue;//提现状态   0提现成功   1审核中    2  审核失败

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "openid")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Basic
    @Column(name = "alipay_account")
    public String getAliPayAccount() {
        return aliPayAccount;
    }

    public void setAliPayAccount(String aliPayAccount) {
        this.aliPayAccount = aliPayAccount;
    }

    @Basic
    @Column(name = "money")
    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Basic
    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    @Basic
    @Column(name = "status_value")
    public String getStatusValue() {
        return statusValue;
    }

    public void setStatusValue(String statusValue) {
        this.statusValue = statusValue;
    }

    public AliPayCashRecord() {
    }

    public AliPayCashRecord(String openId, String aliPayAccount, int status,String statusValue) {
        this.openId = openId;
        this.aliPayAccount = aliPayAccount;
        this.status = status;
        this.statusValue = statusValue;
    }
    public AliPayCashRecord(String openId, String aliPayAccount, double money, int status,String statusValue) {
        this.openId = openId;
        this.aliPayAccount = aliPayAccount;
        this.money = money;
        this.status = status;
        this.statusValue = statusValue;
    }
}
